package com.zjtaixue.usersite.mapper;

import com.zjtaixue.usersite.domain.Student;
import com.zjtaixue.usersite.query.StudentQueryObject;

import java.util.List;

public interface StudentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Student record);

    Student selectByPrimaryKey(Integer id);

    List<Student> selectAll();

    int updateByPrimaryKey(Student record);

    int queryCount(StudentQueryObject qo);

    List<Student> query(StudentQueryObject qo);

    int countByNumber(String number);

    int countOthersByNumber(Student student);

    int countByClassId(Integer classId);

    List<Student> listByClassId(Integer classId);

    List<Student> listByMajorId(Integer majorId);

    List<Student> listByKeyword(String keyword);

    Student selectByNumber(String number);
}